import Gannt from './gannt'
import { GanntConfig, ChartsMap } from './type'
const chartsMap: ChartsMap = {
    'gannt': Gannt
}
class Jcharts {
    wrap: DOMException
    canvasArea: CanvasCompositing
    options: GanntConfig
    constructor() {
        // this.wrap = wrap
    }
    initCharts(wrap: DOMException) {
        this.canvasArea = document.createElement('canvas')
        this.wrap.appendChiledren(jchars)
    }
    setOptions(options) {
        if (chartsMap[options.type]) {
            return new chartsMap[options.type](options)
        }
    }
}

const jchars = new Jcharts()